package io.renren.modules.live.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.live.entity.FanwePropEntity;
import io.renren.modules.live.vo.PropListVo;

import java.util.Map;

/**
 * 礼物列表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-11-17 09:18:22
 */
public interface FanwePropService extends IService<FanwePropEntity> {

    PageUtils queryPage(Map<String, Object> params);
    /**
     *查询礼物列表集合
     * @param propListVo
     * @return
     */
    Map<String , Object>selectPropLise(PropListVo propListVo)throws Exception;

    /**
     * 新建或更新礼物
     * @param fanwePropEntity
     * @return
     * @throws Exception
     */
    Integer creatAndUpdateProp(FanwePropEntity fanwePropEntity)throws Exception;
    /**
     * 修改礼物信息状态
     * @param isEffect
     * @return
     */
    Integer updatePropIsEffect(String isEffect ,String id)throws Exception;
    /**
     * 通过id查询礼物信息
     * @param id
     * @return
     */
    FanwePropEntity selectProp(String id);
}

